﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YGame.Base
{
	public class ReceiveDataArgs : EventArgs
	{
		public byte[] Data { get; set; }
	}
	public delegate void ReceiveDataHandler(IGatewayConnect connect, ReceiveDataArgs e);


	public interface IGatewayConnect
	{
		event ReceiveDataHandler ReceiveData;
		void Start();
		void Stop();
		void Send(string data);
		void OnRecieve(string data);
		void OnRecieve(byte[] data);
	}
}
